package com.qyy.remotemonitor.http.base;

/**
 * Created by zhaotun
 */

public class BaseStatus{

    public static final String RESPONSE_CODE_SUCCESS = "0";// 1成功
    public static final int RESPONSE_CODE_ERROR_INVALID_TOKEN = 10003;//非法的用户会话信息

    private String code;
    private String message;

    @Override
    public String toString() {
        return "BaseStatus{" +
                "code=" + code +
                ", message='" + message + '\'' +
                '}';
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return RESPONSE_CODE_SUCCESS.equals(code);
    }
}
